package com.meetup.caug.gitrdone;

import java.util.ArrayList;

import android.app.Application;
import android.util.Log;

import com.meetup.caug.gitrdone.model.Task;

public class MainApplication extends Application {
    private ArrayList<Task> tasks;

    @Override
    public void onCreate() {
        super.onCreate();
        if (null == tasks) {
            // Create a list of tasks only if one doesn't already exist
            Log.v("ez", "New list of tasks");
            tasks = new ArrayList<Task>();
        }
    }

    public ArrayList<Task> getTasks() {
        return tasks;
    }

}
